﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QString>
#include <QMultiMap>

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButtonAdd_clicked();

    void on_pushButtonReplace_clicked();

    void on_pushButtonDelByName_clicked();

    void on_pushButtonDelByNamePhone_clicked();

    void on_pushButtonQueryName_clicked();

    void on_pushButtonQueryPhone_clicked();

private:
    Ui::MainWindow *ui;
    QMultiMap<QString, QString> m_mmapNamePhone;
    void showNamePhoneMap(void);
};
#endif // MAINWINDOW_H
